package com.xlh.param.course;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 课程方向
 * <p>
 * Created by lx on 2019/12/26.
 */
@Data
public class CourseDirectionParam {

    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为空")
    private Long id;

    @Valid
    @ApiModelProperty(value = "子集")
    private List<CourseDirectionParam> children;

}
